home *** CD-ROM | disk | FTP | other *** search
- Path: hydra.chem.ualberta.ca!bruce
- From: bruce@news.srv.ualberta.ca (Bruce Clarke)
- Newsgroups: comp.lang.rexx
- Subject: Re: REXX to check if prog i running?
- Date: Tue, 16 Apr 1996 14:56:31
- Organization: University of Alberta, Edmonton, Canada
- Distribution: inet
- Message-ID: <960416145631@hydra.chem.ualberta.ca>
- References: <316E6393.597A@rwi.com>
- Reply-To: Bruce.Clarke@ualberta.ca
- NNTP-Posting-Host: hydra.chem.ualberta.ca
- NNTP-Software: PC/TCP NNTP
-
- In article <316E6393.597A@rwi.com> Jon Winters <jwinters@rwi.com> writes:
-
- > Is theere a REXX script that will check to see if something is running.
- > I am running a Internet web server and my FTP deamon can keeps
- > crashing. I would like a REXX script that watches over it and launches
- > it in the event of a crash.
-
- Put this in the rexx script:
-
- 'pstat | find "FTPD" | RXQUEUE'
-
- Then check if QUEUED()>0. If FTPD is running, there will be lines
- in RXQUEUE.
-
-
- --
- ------------------------------------------------------------
- Bruce Clarke | mailto:Bruce.Clarke@UAlberta.ca
- Department of Chemistry | compuserve: 70740,3135
- University of Alberta | ftp://hydra.chem.ualberta.ca
- Edmonton AB, T6G 2G2, Canada
- http://entropy.chem.ualberta.ca/faculty/clarke/home.htm
-
-